<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>立即下载</title>
    <meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <link href="{$Think.config.RESOURCEURL}wx_assets/iconfont/iconfont.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/zepto.alert.css" />
    <link href="{$Think.config.RESOURCEURL}wx_assets/personCenter/css/index.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <script src="{$Think.config.RESOURCEURL}wx_assets/personCenter/js/mediaQuery.min.js{$Think.config.RESOURCE_VER}"></script>
    <script type='text/javascript' src='{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js'></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js" type="text/javascript"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}"></script>
    <link href="//at.alicdn.com/t/font_247327_bb93xb90dm5i2j4i.css" rel="stylesheet" type="text/css">
    <style media="screen">
      #down-load {
        display: flex;
        justify-content: center;
        font-size: 16px;
      }
      .btn {
        margin-top: 100px;
        background: #f45492;
        color: #fff;
        border-radius: 100px;
        padding: 6px 12px;
      }
    </style>
</head>
<body id="down-load">
  <div class="btn">
    立即下载
  </div>
<script>
  function Page() {};

  $.extend(Page.prototype, {
      // 初始化
      init: function () {
          this.bindEvents();
          this.ua = $.util.getUa();
      },

      // 绑定事件
      bindEvents: function() {
          $('.btn').click($.proxy(this.handleBtnClick, this));
      },

      // 点击下载按钮
      handleBtnClick: function() {
        if (this.ua === 'nativeApp') {
          android.getApplication('www.mboxone.com');
        } else {
          $.util.alert('不是意小康APP')
        }
      }
  }) ;

  var page = new Page();
  page.init();
</script>
</body>
</html>
